<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<!-- #include virtual=/inc/action.header.inc.asp -->

<%
	'## 파라미터 변수 선언부
	userId		= Request("userId")
	passwd		= Request("passwd")
	userNm		= Request("userNm")
	apprPass		= Request("apprPass")
	uDuty		= Request("uDuty")
	uLevel		= Request("uLevel")
	uEmail		= Request("uEmail")
	uPhone		= Request("uPhone")
	compCd		= Request("compCd")
	uPerm		= Request("uPerm")
	uRemark		= Request("uRemark")
	uPart		= Request("uPart")
	delYN		= Request("delYN")
	gwYN		= Request("gwYN")

	uRemark		= Replace(uRemark,"'","''")

	If compCd = "" Then compCd = 0 End If 

	SQLTitle = "-- ■■■■ 권한 관리 저장 ■■■■"
	SQL = "exec spUser '" & userId & "', '" & passwd & "', '" & userNm & "', '" & apprPass & "', '" & uDuty & "', '" & uLevel & "', '" & uEmail & "', '" & uPhone & "', " & compCd & ", '" & uPerm & "', '" & uRemark & "', '" & uPart & "', '" & gwYN & "', '" & delYN & "'"

	If xMode="debug" Then 
		Call showDebug(SQLTitle,SQL) 
	End If 

'Response.write SQL
'Response.end
	DbCon.Execute SQL

	Call rsWithXML("Save OK!")
%>